<template>
  <div>计算机测试</div>
  <div>
    {{ count }}
    <NButton type="primary" @click="increment">添加计数</NButton>
  </div>
  <hr />
  <HuCounterOne></HuCounterOne>
</template>

<script setup lang="ts">
import { useCounterStore } from '@/stores/counter'
import { storeToRefs } from 'pinia'
import { NButton } from 'naive-ui'
import HuCounterOne from './HuCounterOne.vue'
const { increment } = useCounterStore()
const { count } = storeToRefs(useCounterStore())
</script>

<style scoped></style>
